package com.joysuch.wwyt.patrol.mapper;

import com.joysuch.wwyt.core.bean.SimpleListBean;
import com.joysuch.wwyt.patrol.entity.PatrolTaskAssign;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.joysuch.wwyt.patrol.entity.dto.TaskAssignDto;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Set;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author heqifeng
 * @since 2022-03-01
 */
@Repository
public interface PatrolTaskAssignMapper extends BaseMapper<PatrolTaskAssign> {

    List<SimpleListBean> selectSimpleAssignByTaskId(Long taskId);

    List<TaskAssignDto> selectSimpleAssignByTaskIds(@Param("taskIds") Set<Long> taskIds);

    Integer batchInsert(@Param("list") List<PatrolTaskAssign> assignList);

}
